package com.eascs.p2p.common.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the p2p_investor database table.
 * 
 */
@Entity
@Table(name="p2p_investor")
@NamedQuery(name="P2pInvestor.findAll", query="SELECT p FROM P2pInvestor p")
public class InvestorEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/**注册渠道*/
	public static final byte REGISTER_CHANNEL_H5=1;
	
	/**是否实名：0-否 1-是*/
	public static final byte IS_REALNAME_YES=1;
	public static final byte IS_REALNAME_NO=0;

	@Id
	private String id;

	private String account;

	private InvestorBankEntity investorBank;
	
	@Column(name="bank_requestno")
	private String bankRequestno;

	private byte channel;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="create_time")
	private Date createTime;

	private String features;

	@Column(name="id_card_no")
	private String idCardNo;

	@Column(name="is_del")
	private byte isDel;

	@Column(name="is_realname")
	private byte isRealname;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="last_login_time")
	private Date lastLoginTime;
	
	@Column(name="last_login_ip")
	private String lastLoginIp;
	
	@Column(name="last_login_mac")
	private String lastLoginMac;

	private String mobile;

	private String name;

	private String nickname;

	private String password;

	@Column(name="reg_ip")
	private String regIp;

	private byte status;

	@Column(name="trade_password")
	private String tradePassword;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="update_time")
	private Date updateTime;

	private int version;

	public InvestorEntity() {
	}
	
	public InvestorEntity(String account, String password) {
		super();
		this.account = account;
		this.password = password;
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAccount() {
		return this.account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public byte getChannel() {
		return this.channel;
	}

	public void setChannel(byte channel) {
		this.channel = channel;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getFeatures() {
		return this.features;
	}

	public void setFeatures(String features) {
		this.features = features;
	}

	public String getIdCardNo() {
		return this.idCardNo;
	}

	public void setIdCardNo(String idCardNo) {
		this.idCardNo = idCardNo;
	}

	public byte getIsDel() {
		return this.isDel;
	}

	public void setIsDel(byte isDel) {
		this.isDel = isDel;
	}

	public byte getIsRealname() {
		return this.isRealname;
	}

	public void setIsRealname(byte isRealname) {
		this.isRealname = isRealname;
	}

	public Date getLastLoginTime() {
		return this.lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNickname() {
		return this.nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRegIp() {
		return this.regIp;
	}

	public void setRegIp(String regIp) {
		this.regIp = regIp;
	}

	public byte getStatus() {
		return this.status;
	}

	public void setStatus(byte status) {
		this.status = status;
	}

	public String getTradePassword() {
		return this.tradePassword;
	}

	public void setTradePassword(String tradePassword) {
		this.tradePassword = tradePassword;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public int getVersion() {
		return this.version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

//	public Integer getBankStatus() {
//		return bankStatus;
//	}
//
//	public void setBankStatus(Integer bankStatus) {
//		this.bankStatus = bankStatus;
//	}

	public String getLastLoginIp() {
		return lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}

	public String getLastLoginMac() {
		return lastLoginMac;
	}

	public void setLastLoginMac(String lastLoginMac) {
		this.lastLoginMac = lastLoginMac;
	}
	

	public InvestorBankEntity getInvestorBank() {
		return investorBank;
	}

	public void setInvestorBank(InvestorBankEntity investorBank) {
		this.investorBank = investorBank;
	}

	public String getBankRequestno() {
		return bankRequestno;
	}

	public void setBankRequestno(String bankRequestno) {
		this.bankRequestno = bankRequestno;
	}

	@Override
	public String toString() {
		return "InvestorEntity [id=" + id + ", account=" + account + ", channel=" + channel + ", createTime="
				+ createTime + ", features=" + features + ", idCardNo=" + idCardNo + ", isDel=" + isDel
				+ ", isRealname=" + isRealname + ", lastLoginTime=" + lastLoginTime + ", lastLoginIp=" + lastLoginIp
				+ ", lastLoginMac=" + lastLoginMac + ", mobile=" + mobile + ", name=" + name + ", nickname=" + nickname
				+ ", password=" + password + ", regIp=" + regIp + ", status=" + status + ", tradePassword="
				+ tradePassword + ", updateTime=" + updateTime + ", version=" + version + "]";
	}

	
}